package com.itheima.service;

import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.OrderSettingVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface OrderSettingService {
    /**
     * 下载文件
     * @param filename
     * @param response
     */
    void download(String filename, HttpServletResponse response);

    /**
     * 根据日期修改预约人数
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 根据月份查询预约设置数据
     * @param date
     * @return
     */
    List<OrderSettingVO> getOrderSettingByMonth(String date);

    /**
     * 上传文件 批量导入预约设置数据
     * @param file
     */
    void upload(MultipartFile file);
}
